//创建技术的控制器JS
msqbapp.controller('zhishidianController',function ($scope,msqbService) {
    $scope.userId = 0;
    $scope.classifyId = 0;
    //创建新题的初始化函数
    $scope.zhishidianInit = function () {
        var arr = window.location.search.split('&');
        for (var i = 0;i<arr.length;i++){
            var strarr = arr[i].split('=');
            if(strarr[0]=='?userId'){
                $scope.userId = strarr[1];
            }
            if(strarr[0]=='classifyId'){
                $scope.classifyId = strarr[1];
            }
        }
        //得到技术(二级分类)分类列表
        msqbService.classifyOneList($scope.classifyId).success(function (resp) {
            $scope.classifyListTwo = resp;
        });
    };
});